package com.surenpi.jenkins.client.computer;

import com.surenpi.jenkins.client.BaseModel;

public class OfflineCause extends BaseModel {
   private Long timestamp;
   private String description;

   public Long getTimestamp() {
      return this.timestamp;
   }

   public String getDescription() {
      return this.description;
   }

   public int hashCode() {
      int prime = 31;
      int result = 1;
      result = 31 * result + (this.description == null ? 0 : this.description.hashCode());
      result = 31 * result + (this.timestamp == null ? 0 : this.timestamp.hashCode());
      return result;
   }

   public boolean equals(Object obj) {
      if (this == obj) {
         return true;
      } else if (obj == null) {
         return false;
      } else if (this.getClass() != obj.getClass()) {
         return false;
      } else {
         OfflineCause other = (OfflineCause)obj;
         if (this.description == null) {
            if (other.description != null) {
               return false;
            }
         } else if (!this.description.equals(other.description)) {
            return false;
         }

         if (this.timestamp == null) {
            if (other.timestamp != null) {
               return false;
            }
         } else if (!this.timestamp.equals(other.timestamp)) {
            return false;
         }

         return true;
      }
   }

   public void setTimestamp(Long timestamp) {
      this.timestamp = timestamp;
   }

   public void setDescription(String description) {
      this.description = description;
   }
}
